<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>我的账户-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->
<script src="__PUBLIC__/js/layer/layer.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->

    <div class="breadcrumb-area">    
<div class="layout">
	    <foreach name="navigate_user" key="k" item="v">
	        <if condition="$k neq '首页'"> > </if>  
            <a href="{$v}">{$k}</a> 
        </foreach>
    </div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />
    <!--菜单-->
    <div class="fr wi872">
        <div class="he50 wddd">
            <div class="fl ddd-h2">
                <h2><span>我的余额：{$user.user_money}</span></h2>
            </div>
            <div class="fr ddd-h2">
                <div>
                    <input  name="money" id="money" type="text">
                </div>

            	<h2><a class="co-red addlist_btn" onClick="add_order()"><span>+充值</span></a></h2>
            </div>
        </div>

        <div class="wddd-js ov-in">
            <div class="list-group-title">
                <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr>
                        <th class="col-pro wi137">序号</th>
                        <th class="wi172">金额 </th>
                        <th class="wi178">时间</th>
                        <th class="">备注</th>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="merge-list">
          
                <div class="ma-0--1">
                    <div class="o-pro">
                        <if condition="!$lists">
                            <div id="tips_message">
                                <div class="message_tipws_content">
                                    <div class="tips_img"><img src="__STATIC__/images/tips_message.png" style=" width:191px; height:186px;" ></div>
                                    暂无记录
                                    <!--<div class="tipws_content">-->
                                         <!---->
                                        <!--<a href="javascript:void(0);" onClick="address_edit({$list['address_id']})"> {$Think.lang.addaddress}<i class="icon-chevron-right-circle"></i></a>-->
                                    <!--</div>-->
                                    <div class="clear"></div>
                                </div>
                            </div>
                        </if>
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                            <volist name="lists" id="list">
                                <tr>
                                    <td class="col-pro wi137">{$xuhao++}</td>
                                    <td class="wi172">{$list.user_money}</td>
                                    <td class="wi178"> {$list.change_time|date='Y-m-d H:i:s',###}</td>
                                    <td class="">{$list.desc}</td>
                                    <!--<td rowspan="1" class="wi172"><span>{$list.mobile}</span></td>-->
                                    <!--<td rowspan="1" class="col-operate wi199">-->
                                        <!--<p class="p-link  pfc"><a href="javascript:address_edit({$list['address_id']})">{$Think.lang.editor}</a></p>-->
                                        <!--<p class="p-link  pfc"><a href="{:U('Home/User/del_address',array('id'=>$list['address_id']))}">{$Think.lang.delete}</a></p>-->
                                        <!--<p class="p-link  pfc"><a class="red" href="{:U('Home/User/set_default',array('id'=>$list['address_id']))}">{$Think.lang.defaultaddress}</a></p>-->
                                    <!--</td>-->
                                </tr>
                            </volist>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->


</body>


<script>
    function add_order()
    {
        var money =$('#money').val();
        if(!money){

        }

        var reg = /^[1-9]\d*$|^0$/;
        // 如果验证失败给出警告
        if(!reg.test($('#money').val())){
            $.artTip('输入有误，请重新输入！', 1000);
            return false;
        }







        location.href = "/index.php?m=Home&c=User&a=add_order&money="+money;
    }

</script>
</html>